package com.example.shoppingmall.service;

import com.example.shoppingmall.pojo.Jurisdiction1;
import com.example.shoppingmall.dao.Jurisdiction1Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class Jurisdiction1Service {
    @Autowired
    private Jurisdiction1Mapper jurisdiction1Mapper;

    public List<Jurisdiction1> jurisdiction1List(@Param("moldId")Integer moldId){
        return jurisdiction1Mapper.jurisdiction1List(moldId);
    }

    public int add(Jurisdiction1 jurisdiction1){
        return jurisdiction1Mapper.add(jurisdiction1);
    }

    public int chack(@Param("moldId")int moldId,@Param("parameterId")int parameterId){
        return jurisdiction1Mapper.chack(moldId,parameterId);
    }

    public int delete(@Param("id")int id){
        return jurisdiction1Mapper.delete(id);
    }
}
